<?php


namespace app\Enums;


class LogChannel
{
    const TEST = 1;
    const DEVICE_GET = 2;
    const ADD_PRODUCTION = 3;
    const EDIT_PRODUCTION = 4;
    const ADD_WELFARE_PRODUCTION = 5;
    const EDIT_WELFARE_PRODUCTION = 6;
    const WX_LOGIN = 7;
    const ADD_WELFARE_ORDER = 8;
    const ADD_ORDER = 9;
    const ADD_TEAM = 10;
    const WECHAT_PAYMENT_RESULT = 11;
    const WEBSOCKET_CLOSE = 12;
    const CREATE_WECHAT_ORDER = 13;
    const QUERY_PAY_RESULT = 14;
    const HANDLE_WECHAT_PAY_RESULT = 15;
    const CREATE_WECHAT_REFUND = 16;
    const WECHAT_REFUND_RESULT = 17;
    const WECHAT_JOB_QUERY_REFUND = 18;
    const WECHAT_JOB_QUERY_PAY = 19;
    const WECHAT_JOB_CLOSE_ORDER = 20;
    const UPLOAD_GAME_RECORD = 21;
    const READY_GAME = 22;
    const BIND_ORDER = 23;
    const RECEIVE_USER_ACTION = 24;
    const RECEIVE_USER_SCORE = 25;
    const UDP_SCAN = 26;



    const description = [
        self::ADD_PRODUCTION=>"新增商品",
        self::EDIT_PRODUCTION=>"编辑商品",
        self::EDIT_WELFARE_PRODUCTION=>"编辑福利商品",
        self::TEST => "测试",
        self::DEVICE_GET => "硬件数据",
        self::ADD_WELFARE_PRODUCTION => "新增福利商品",
        self::WX_LOGIN => "微信登录",
        self::ADD_WELFARE_ORDER => "创建福利订单",
        self::ADD_ORDER => "创建订单",
        self::ADD_TEAM => "创建组队",
        self::WECHAT_PAYMENT_RESULT => "微信返回支付结果",
        self::WEBSOCKET_CLOSE => "websocket断开连接",
        self::CREATE_WECHAT_ORDER => "请求微信创建订单",
        self::QUERY_PAY_RESULT => "查询微信支付结果",
        self::HANDLE_WECHAT_PAY_RESULT => "处理微信返回支付结果",
        self::CREATE_WECHAT_REFUND => "创建微信退款",
        self::WECHAT_REFUND_RESULT => "微信退款回调",
        self::WECHAT_JOB_QUERY_REFUND => "队列查询退款结果",
        self::WECHAT_JOB_QUERY_PAY => "队列查询支付结果",
        self::WECHAT_JOB_CLOSE_ORDER => "关闭微信订单",
        self::UPLOAD_GAME_RECORD => "上传游戏数据有误",
        self::READY_GAME => "开始游戏故障",
        self::BIND_ORDER => "绑定订单",
        self::RECEIVE_USER_ACTION => "收到用户行为数据异常",
        self::RECEIVE_USER_SCORE => "接收用户成绩异常",
        self::UDP_SCAN => "手环扫码故障",



    ];
    public static function getDescription($value): string
    {
        return self::description[$value] ?? "";
    }
}